﻿public class Volvo30
{
    public string Name;
    public string Color;
    public static int Gas = 25;
    public static int Engine_capacity = 2000;

    public Volvo30(string name, string color)
    {
        Name = name;
        Color = color;
    }

    public static int Calculate_fuel_for_trip(int trip_distance)
    {
        return trip_distance / Gas;
    }

    public void PrintCarDetails()
    {
        System.Console.WriteLine("--- Car Details ---");
        System.Console.WriteLine("Car Owner: {0}", Name);
        System.Console.WriteLine("Car Color: {0}", Color);
        System.Console.WriteLine("Gas Mileage: {0} mpg", Gas);
        System.Console.WriteLine("Engine Capacity: {0} cc", Engine_capacity);
    }
}

public class OOP4
{
    public static void Main(string[] args)
    {
        int value = Volvo30.Engine_capacity;
        Console.WriteLine("Static field value: {0}", value);

        Console.WriteLine(Volvo30.Calculate_fuel_for_trip(200));

        Console.ReadKey();
    }
}